<?php
/**
 * Created by PhpStorm.
 * User: kobe.wang
 * Date: 2019/3/18
 * Time: 15:24
 */
namespace App\Common;

use SwooleTW\Http\Table\Facades\SwooleTable as Table;

class SwooleTableTest
{
    public function test() {
        $table = Table::get('test');

        $table->set('uid:1', ['id' => 1,'username' => 'lovews28']);

        $result = $table->get('uid:1');

        return $result;
    }
}